/****************************************************************************
 *                                                                          *
 *  Author : lukasz.iwaszkiewicz@gmail.com                                  *
 *  ~~~~~~~~                                                                *
 *  License : see COPYING file for details.                                 *
 *  ~~~~~~~~~                                                               *
 ****************************************************************************/

#include "AbstractElem.h"
#include "../../../../core/Typedefs.h"

namespace Container {

std::string const &AbstractElem::getAttribute (const std::string &key) const
{
        Core::StringMap::const_iterator i = attributes.find (key);
        static std::string ret = "";
        return (i == attributes.end ()) ? (ret) : (i->second);
}

}
